﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<%
String path = request.getContextPath();
String errorMessage = (String)request.getAttribute("ERROR_MESSAGE");
%>

<SCRIPT LANGUAGE="javascript"> 
<!-- 
//window.open ("<%=request.getContextPath()%>/notice.html", "newwindow", "height=300, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no") //写成一行 
--> 
</SCRIPT>

<title>长安销售DMS系统</title>
<jsp:include page="${path}/common/jsp_head_new.jsp" />

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

</head>
<body onload="loadcalendar();" >
<form action="<%=path%>/common/UserManager/login.do" method="post" name=form1>
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td align="center" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/img/login/bg_ok4.jpg">
		  <tr>
			<td height="347" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" valign="bottom"><img src="<%=request.getContextPath()%>/img/login/main_top1.jpg" width="484" height="70" /></td>
              </tr>
            </table>
			  <table width="1004" height="276" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/img/login/back.JPG">
                <tr>
                  <td width="680" height="276" rowspan="5" align="center" valign="middle" style="background-repeat:no-repeat; background-position:center">&nbsp;</td>
                  <td width="320" height="130" align="left" valign="bottom" style="background-repeat:no-repeat; background-position:center"><input name='userName' id=tbUploadEndDate5 style="WIDTH: 200px" class='login_for' value=""/></td>
                </tr>
                <tr>
                  <td height="35" align="left" valign="bottom" style="background-repeat:no-repeat; background-position:center"><input name=password type=password id=tbUploadEndDate22 style="WIDTH: 200px" class="login_for" /></td>
                </tr>
                <tr>
                  <td height="35" align="left" valign="bottom" style="background-repeat:no-repeat; background-position:center"><img src="<%=path%>/img/lodin1.gif" width="59" height="20" onClick="javascript:submitform();" style="cursor: pointer;"/>
                    　
                  <img src="<%=path%>/img/lodin2.gif" width="59" height="20" onClick="javascript:reset_text();" style="cursor: pointer;"/></td>
                </tr>
                <tr>
                  <td height="38" align="center" valign="middle" style="background-repeat:no-repeat; background-position:center"><font style="font-size:12px;color:#FFFFFF">系统支持热线：023-67543333<font/>&nbsp;</td>
                </tr>
                <tr>
                  <td height="38" align="center" valign="middle" style="background-repeat:no-repeat; background-position:center">&nbsp;</td>
                </tr>
              </table></td>
		  </tr>
		</table>
		</td>
	  </tr>
	</table>
</form>
<script language="javascript">
	<% 
	if(errorMessage != null && !errorMessage.equals(""))
	{ 
	%>
	MyAlert('<%=errorMessage %>');
	<% 
	} 
	%>
	function submitform(){
		if(+[1,]||navigator.userAgent.indexOf("360SE")>0||navigator.userAgent.indexOf("Maxthon")>0){   
			alert("请使用IE浏览器登录系统!");
			window.close();
		}  
		else{
			return document.form1.submit();
		}
	}
	function reset_text(){
		document.form1.reset();
		document.getElementById('userName').focus();
		return false;		
	}
	
		window.document.onkeydown = function (){
		if(event.keyCode==13){
			submitform();
		};
	}
</script>
</body>
</html>
